package org.example.weather.bigscreen.core.repository;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.weather.bigscreen.core.api.dto.AreaDTO;
import org.example.weather.bigscreen.core.entity.TblWeatherArea;

@Mapper
public interface TblWeatherAreaMapper {
    int insert(TblWeatherArea record);

    TblWeatherArea selectByPrimaryKey(String areaId);

    int updateByPrimaryKey(TblWeatherArea record);

    int batchInsert(@Param("list") List<TblWeatherArea> list);

    List<TblWeatherArea> selectByAreaIds(@Param("areaIds") List<String> areaIds);


    List<AreaDTO>  selectAll(@Param("enabled") Boolean enabled);
}